package com.luckmgr.service.impl;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.common.service.BaseService;
import com.common.utils.ArithUtil;
import com.common.utils.MD5;
import com.common.utils.PropsLoader;
import com.common.utils.StringUtils;
import com.luckmgr.constant.LuckmgrConstant;
import com.luckmgr.dao.ActivityLevelMapper;
import com.luckmgr.dao.LuckUserMapper;
import com.luckmgr.entity.db.ActivityLevel;
import com.luckmgr.entity.db.LuckNumber;
import com.luckmgr.entity.db.LuckUser;
import com.luckmgr.entity.db.User;
import com.luckmgr.service.LuckUserService;
import com.luckmgr.vo.BetRecord;


@Service
public class LuckUserServiceImpl extends BaseService<LuckUser> implements LuckUserService {
	
	@Autowired
	LuckUserMapper luckUserMapper;
	
	@Override
	public int betRecord(User user, Integer activityid,
			Map<String, List<String[]>> map) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public LuckUser findLuckUser(Integer aid, String userName) {
		return luckUserMapper.findLuckUser(aid, userName);
	}

	@Override
	public void updateUserAsk(Integer id) {
		luckUserMapper.updateUserAsk(id);
		
	}

	@Override
	public LuckNumber findLuckNumber(Integer lid,Integer sub) {
		return luckUserMapper.findLuckNumber(lid,sub);
	}
	
}